#!/usr/bin/env python

import imp
import os
import subprocess

python_dir  = 'python'
kt_dir      = os.path.join(python_dir, 'kt')
config_file = os.path.join(kt_dir, 'config.py')
config      = imp.load_source('config', config_file)

python_command = 'python' + config.pyver
p = subprocess.Popen([python_command, 'setup.py', 'install'], cwd = 'python')
os.waitpid(p.pid, 0)[1]
